package util;

import java.util.ArrayList;
import java.util.List;

public class Customer {
    private final String libraryNumber;
    private final String password;
    private final String email;
    private final String phone;
    private final String name;
    private List<Book> books;

    public Customer(String libraryNumber, String name, String password, String email, String phone) {
        this.libraryNumber = libraryNumber;
        this.name = name;
        this.password = password;
        this.email = email;
        this.phone = phone;
        books = new ArrayList<Book>();
    }

    @Override
    public String toString() {
        return "Name:" + name + "; Email:" + email + "; Phone:" + phone + ";\n";
    }

    public List<Book> getBooks() {
        return books;
    }

    public void addBook(Book book) {
        books.add(book);
    }

    public String getName() {
        return name;
    }

    public String getLibraryNumber() {
        return libraryNumber;
    }

    public String getPassword() {
        return password;
    }
}
